﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HomeCareLibrary.Core.Dtos;

namespace HomeCareLibrary.Core.JsonObjects
{
    public class Task
    {
        public string taskCode { get; set; }
        
        public string featureName { get; set; }

        public string displayIconCode { get; set; }

        public int priority { get; set; }

        public string taskDescription { get; set; }

        public int type { get; set; }

        public string doneOrNot { get; set; }

        public Task()
        { }

        public Task(CTTaskDto dto)
        {
            taskCode = dto.task_code;
            featureName = dto.feature_name;
            displayIconCode = dto.display_icon_code;
            priority = dto.priority;
            taskDescription = dto.task_description;
            type = dto.type;
            doneOrNot = dto.done_or_not;
        }

    }
}
